package com.imut.onlinebanking.dealings.mapper;

import com.imut.onlinebanking.dealings.entity.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface AccountMapper {
    Account selectByAccountId(@Param("accountId")Long accounts);

    int deposit(@Param("accountId") Long accountId, @Param("amount") BigDecimal amount);

    int withdraw(@Param("accountId") Long accountId, @Param("amount") BigDecimal amount);
    int update(Account account);
    List<Account> getAllAccounts();



}
